package cn.cds.withyou.lib.model;

import android.database.Cursor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import cn.cds.withyou.lib.Constants;

/**
 * <p> Description: </p>
 * <p/>
 * <p> Copyright: Copyright (c) 2016 </p>
 *
 * @author: Json.Lee
 * @Version: 1.0
 * @CreateTime: 2/5/2016 22:19
 */
public class ArenaDto implements Serializable {

    private String id;
    private String name;
    private String phone;
    private String address;
    private String pic;
    private String comment;
    private int spaceCount;

    private List<ArenaBookDto> books = new ArrayList<>();

    public ArenaDto() {

    }

    public ArenaDto(Cursor result) {
        id = result.getString(result.getColumnIndex(Constants._ID));
        name = result.getString(result.getColumnIndex(Constants.Arena._NAME_ITEM));
        phone = result.getString(result.getColumnIndex(Constants.Arena._PHONE_ITEM));
        address = result.getString(result.getColumnIndex(Constants.Arena._ADDRESS_ITEM));
        pic = result.getString(result.getColumnIndex(Constants.Arena._PIC_ITEM));
        comment = result.getString(result.getColumnIndex(Constants.Arena._COMMENT_ITEM));
        spaceCount = result.getInt(result.getColumnIndex(Constants.Arena._SPACE_COUNT));
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public int getSpaceCount() {
        return spaceCount;
    }

    public void setSpaceCount(int spaceCount) {
        this.spaceCount = spaceCount;
    }

    public List<ArenaBookDto> getBooks() {
        return books;
    }

    public void setBooks(List<ArenaBookDto> books) {
        this.books = books;
    }
}
